﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp.AspNetCore.Mvc;
using Volo.Abp.Identity;

namespace BloggingService.Host.Controllers
{
    [Authorize]
    [ApiController]
    [Route("Test")]
    public class TestController : AbpController
    {
        private readonly Volo.Abp.Identity.IIdentityUserAppService _identityUserAppService;

        public TestController(IIdentityUserAppService identityUserAppService)
        {
            _identityUserAppService = identityUserAppService;
        }

        [HttpGet]
        [Route("aaa")]
        public async Task Test()
        {
            var user = await _identityUserAppService.GetAsync(new System.Guid("3A08F6B0-75C6-6556-8CCB-06246D3216F2"));
        }
    }
}
